
<seed-content class="seed-person-page" #container>
  <seed-toolbar-header>
    <seed-toolbar-title>个人主页</seed-toolbar-title>
    <seed-toolbar-menu></seed-toolbar-menu>
  </seed-toolbar-header>
  <div class="seed-person-homepage">
    <div class="person-header">
      <div class="person-Info">
          <div class="person-image">
            <p>
              <img
                seed-load-img
                [src]="personInfo?.iconUrl"
                class="person-img"
                *ngIf="personInfo"
              >
            </p>
            <img
              [src]="getImg(personInfo?.sex)"
              class="little-icon"
              *ngIf="personInfo?.sex==1 || personInfo?.sex==2"
            >
          </div>
          <div class="person-detail-info">
            <div class="person-nickName">
              <span class="person-name" >{{personInfo?.nickName | truncate:7 }}</span>
              <img
                src="{{personInfo?.appImgtxtUrl}}"
                class="person-check"
                *ngIf="personInfo?.appImgtxtUrl && personInfo?.appImgtxtUrl!=''"
              >
            </div>
            <div class="person-edit" *ngIf="personInfo?.areaProvName || personInfo?.areaCityName">
              <img [src]="getIcon('address_white_xq.png')">
              <span *ngIf="personInfo?.areaProvName && personInfo?.areaCityName">
                {{personInfo?.areaProvName + '-' + personInfo?.areaCityName | truncate:10}}
              </span>
              <span *ngIf="!personInfo?.areaProvName || !personInfo?.areaCityName">
                {{personInfo?.areaCityName || personInfo?.areaProvName}}
              </span>
            </div>
          </div>
        <div class="careStatePlace">
          <button class="careStatus"
               *ngIf="user.getUserId() != userId && personInfo"
               (click)="addDelete(personInfo?.userId)"
          >
            {{isLogin?(isFollowed==0?'+ 关注':isFollowedMe==0?'已关注':'互相关注'):'+ 关注'}}
          </button>
        </div>
      </div>
    </div>
    <seed-tab (tabSelect)="select($event)">
      <seed-tab-item [title] = "'分享'">
        <person-share [content]="container" ></person-share>
      </seed-tab-item>
      <seed-tab-item [title] = "'粉丝'">
        <person-fans [userid]="userId"></person-fans>
      </seed-tab-item>
      <seed-tab-item [title] = "'服务'">
        <person-service [userId]="userId"></person-service>
      </seed-tab-item>
      <seed-tab-item [title] = "'赛事'">
        <person-events [userId]="userId"></person-events>
      </seed-tab-item>
    </seed-tab>
  </div>
</seed-content>



